package sd.czw.com.mmgapp.mcallback;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;
import okhttp3.Response;
import sd.czw.com.mmgapp.model.goodsbean.GoodsdetailsRightModel;


/**
 * Created by czw
 * desc 描述：
 */
public abstract class MyGoodsDetatilRightCallback extends Callback<GoodsdetailsRightModel> {
    @Override
    public GoodsdetailsRightModel parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        GoodsdetailsRightModel goodsdetailInfo = new Gson().fromJson(string, GoodsdetailsRightModel.class);
        return goodsdetailInfo;
    }

}
